IF STATEMENTS: We use if-statements in conditionals to check the values of variables.

  • Click Run and answer the questions. Did you get them all correct?
  • There are some issues with the if statements in this program.
  • Edit each if statement so that it's correctly evaluating the answer that the user enters.
  • Make sure you have the correct test variable and the appropriate test value!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)